package emailUtils;


import org.apache.commons.mail.MultiPartEmail;
import org.apache.commons.mail.SimpleEmail;

public class MailSender
{
    private String host;
    private String appuid;
    private String appkey;
    private String encoding;
    private String sslsmtp;
    public String getHost()
    {
        return host;
    }
    public void setHost(String host)
    {
        this.host = host;
    }
    public String getAppuid()
    {
        return appuid;
    }
    public void setAppuid(String appuid)
    {
        this.appuid = appuid;
    }
    public String getAppkey()
    {
        return appkey;
    }
    public void setAppkey(String appkey)
    {
        this.appkey = appkey;
    }
    public String getEncoding()
    {
        return encoding;
    }
    public void setEncoding(String encoding)
    {
        this.encoding = encoding;
    }
    public String getSslsmtp()
    {
        return sslsmtp;
    }
    public void setSslsmtp(String sslsmtp)
    {
        this.sslsmtp = sslsmtp;
    }
    
    @Override
    public String toString()
    {
        return "MailSender [host=" + host + ", appuid=" + appuid + ", appkey=" + appkey + ", encoding=" + encoding + ", sslsmtp=" + sslsmtp + "]";
    }
    public MailResult send(MailMessage mailMessage,String from,String[] mailto) throws Exception{
        
        if (mailMessage.getMailtype().equals("1"))
        {
            MultiPartEmail email = null;
        }else {
            
        }
        return null;
    }
}
